Skip to content

fix(geneformer): add nvidia-resiliency-ext>=0.6.0 dependency#1600

Open
svc-bionemo wants to merge 1 commit into
NVIDIA-BioNeMo:mainfrom
svc-bionemo:svc-bionemo/fix-nightly-20260604-geneformer-nvrx
Open

fix(geneformer): add nvidia-resiliency-ext>=0.6.0 dependency#1600
svc-bionemo wants to merge 1 commit into
NVIDIA-BioNeMo:mainfrom
svc-bionemo:svc-bionemo/fix-nightly-20260604-geneformer-nvrx

Conversation

@svc-bionemo
Copy link
Copy Markdown
Collaborator

Problem

The nightly CI run for models/geneformer fails with:

AssertionError: Minimum required nvidia-resiliency-ext package version is 0.6.0.

All 4 failing tests (test_geneformer_checkpoint_loss, test_geneformer_checkpoint_weight_compatibility, test_te_bert_layer_and_hf_bert_layer_similar_output_values_random_inputs, test_geneformer_model_loss_validity) hit this at import time through the chain:
geneformer.convertnemo.lightningmegatron.coredist_checkpointing.strategies.nvrx.has_nvrx_async_support()

Root Cause

megatron-core now requires nvidia-resiliency-ext >= 0.6.0 at import time, but the base container image (nvcr.io/nvidia/pytorch:26.04-py3) ships an older version. Since the geneformer pyproject.toml did not pin this transitive dependency, pip install during Docker build did not upgrade it.

Fix

Add nvidia-resiliency-ext>=0.6.0 as an explicit dependency in bionemo-recipes/models/geneformer/pyproject.toml.

CI Run

https://github.com/NVIDIA-BioNeMo/bionemo-framework/actions/runs/26945822391

megatron-core now requires nvidia-resiliency-ext>=0.6.0 at import time
(via dist_checkpointing.strategies.nvrx.has_nvrx_async_support). The
base container image (nvcr.io/nvidia/pytorch:26.04-py3) ships an older
version, causing an AssertionError during test collection for all tests
that import geneformer.convert (which transitively imports nemo.lightning
→ megatron.core).

Add the explicit dependency pin so pip installs the required version
during the Docker build.

Signed-off-by: svc-bionemo <267129667+svc-bionemo@users.noreply.github.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 4, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 9e81b19e-3fa3-4f37-8ab0-4bd8bcd7d05b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant